const {Sequelize} = require("sequelize");

const sequelize = new Sequelize({
    dialect: 'sqlite',
    storage: 'data/database.sqlite',
    define:{
        timestamps: true,
        createdAt: "created_at",
        updatedAt: "updated_at",
        timezone: '+08:00', //东八时区
    },
    logging: false
});

(async () => {
    await sequelize.sync(
        // { alter: true }
    );
})();
module.exports = sequelize